/*-------------------------------------------------------------------------
	created:	2010/09/16  17:50
	filename: 	e:\Project_SVN\Server\GamesScene\GameScene.cpp
	author:		Deeple

	purpose:
---------------------------------------------------------------------------*/

#pragma  once
#include "GameInterface.h"
#include "./MsgDefine.h"

GameInterface g_eventhandle;
IGame* g_pGame = NULL;

void GameInterface::OnCreate(IGame* pScene, UI32 self)
{

}

void GameInterface::OnDestroy(IGame* pScene, UI32 self, bool bSysRunning)
{

}

void GameInterface::OnFrame(IGame* pScene, UI32 self, UI32 selfType, UI32 nFrame, OBJ_POSI_INFO* info)
{

}

void GameInterface::OnHeartBeat(IGame* pScene, UI32 self, UI32 selfType, UI32 nBeat, OBJ_POSI_INFO* info)
{

}

void GameInterface::OnCommand(IGame* pScene, UI32 sender, UI32 self, UI32 msgType, CMsgTyped* pmsg)
{
    g_Dispatcher.OnCommand(pScene, sender, self, msgType, pmsg);
}

void GameInterface::OnTimer(IGame* pScene, UI32 self, UI32 timerId, UI32 interval_minisec, CMsgTyped* pmsg)
{
    g_Dispatcher.OnTimer(pScene, self, timerId, interval_minisec,pmsg);
}


